<%-- 
    Document   : the schedules of one project
    Created on : 2015-5
    Author     : cjh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="front/css/home-page.css"/>
        <link rel="stylesheet" type="text/css" href="front/css/modify.css"/>
        <script src="front/js/jquery-1.11.2.js"></script>
        <script src="front/js/home-page.js"></script>
        <title>物品信息修改</title>
    </head>
    <body class="all-page modify-page">
        <jsp:include page="head.jsp"></jsp:include>

            <div class="modify-panel">
                <p class="title">物品信息</p>
                <form method="post" action="adminUpdateGoods">
                    <input type="hidden" name="id" value="${borrow.goods.id}">

                <label for="user-id" class="for-user-id">物品名</label>
                <input type="text" name="name" value="${borrow.goods.name}">
                <label for="user-name" class="for-user-name">物品描述</label>
                <input type="text" name="description" value="${borrow.goods.description}">

                <label for="sex" class="for-sex">是否借出</label>
                <c:if test="${borrow.isReturn!=0}">
                    <input  path="email" type="text" value ="未借" readonly="readonly"/>
                </c:if>
                <c:if test="${borrow.isReturn==0}">
                    <input  path="email" type="text" value ="借出" readonly="readonly"/>
                    <label for="email" class="for-email">借取人</label>
                    <input  path="email" type="text" value ="${borrow.user.userName}" readonly="readonly"/>

                    <label for="tel" class="for-qq">联系电话</label>
                    <input  path="email" type="text" value ="${borrow.user.tel}" readonly="readonly"/>

                    <label for="userGrade" class="for-major">借取时间</label>
                    <input  path="email" type="text" value ="${borrow.lendTime}" readonly="readonly"/>

                    <label for="address" class="for-university">归还时间</label>
                    <input  path="email" type="text" value ="${borrow.returnTime}" readonly="readonly"/>
                </c:if>

                <div class="button">
                    <button type="submit" class="submit">保存</button>
                    <button type="reset" class="reset">重置</button>
                </div>

            </form>

        </div>
    </body>
</html>
